<!--  -->
<template>
  <div class="noData-box" :style="{ width: width }">
    <img src="@/assets/images/noData.png" />
    <div class="tip">{{ name }}</div>
  </div>
</template>

<script>
export default {
  props: {
    name: {
      type: String,
      default: () => "暂无数据",
    },
    width: {
      type: String,
      default: () => "300px",
    },
  },
  data() {
    return {};
  },
  mounted() {},
  methods: {},
};
</script>
<style scoped lang="scss">
.noData-box {
  // width: 300px;
  margin: 20px auto;
  text-align: center;
  img {
    width: 100%;
  }
  .tip {
    font-size: 14px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #666666;
    line-height: 20px;
  }
}
</style>
